package com.example.question.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * 题目分类和题目中间表实体类
 * @author 颜殿
 */
@Data
@TableName("sort_topic")
public class SortTopic implements Serializable {

    private static final long serialVersionUID = 1L;

    /** 主键ID */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    
    /** 题目分类ID */
    @TableField(value = "sort_id")
    private Integer sortId;
    
    /** 题目ID */
    @TableField(value = "topic_id")
    private Integer topicId;
} 